local print = print

local images = {}

function render()
	SetColor(255,255,0)
	DrawRect(MouseX()-10, MouseY()-10, 30, 20)
	if images and images.medpack then
		SetColor(255,255,255)
		DrawImage(images.medpack, 100, 40)
	end
end

function update()
	if MouseHit(0) then
		print('mouse left was hit, loading image')
		images.medpack = LoadImage('med.png')
	elseif MouseHit(1) then
		print('mouse right was hit, setting image to nil')
		images.medpack = nil
	end
end
